using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Editor
{
    public partial class frmConfiguracoes : Form
    {
        private Form1 formularioPai;

        public frmConfiguracoes(Form1 formPai)
        {
            formularioPai = formPai;
            InitializeComponent();
        }

        private void frmConfiguracoes_Load(object sender, EventArgs e)
        {
            foreach (string nomeVoz in formularioPai.voz.Vozes) {
                cbOpcoesVozes.Items.Add(nomeVoz);
            }

            cbOpcoesVozes.SelectedIndex = formularioPai.voz.Voz;
            trTaxa.Value = formularioPai.voz.Taxa;
        }

        private void cbOpcoesVozes_SelectedIndexChanged(object sender, EventArgs e)
        {
            formularioPai.voz.Voz = cbOpcoesVozes.SelectedIndex;
        }

        private void trTaxa_Scroll(object sender, EventArgs e)
        {
            formularioPai.voz.Taxa = trTaxa.Value;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

    }
}